package tech.aistar.day01.homework;

public class Screen {
    private String type;
    private int size;
    private String screenbrand;

    public Screen() {
    }

    public Screen(String type, int size, String screenbrand) {
        this.type = type;
        this.screenbrand = screenbrand;
        if(size==17||size==23||size==19||size==25)
        {
            this.size = size;
        }
        else{
            this.size = 17;
        }
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        if(size==17||size==23||size==19||size==25)
        {
            this.size = size;
        }
        else{
            this.size = 17;
        }
    }

    public String getScreenbrand() {
        return screenbrand;
    }

    public void setScreenbrand(String screenbrand) {
        this.screenbrand = screenbrand;
    }
}
